package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.contact;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactHarassSettingDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactHarassSettingVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactHarassSettingDto2VoConverter {

    ContactHarassSettingDto2VoConverter INSTANCE = Mappers.getMapper(ContactHarassSettingDto2VoConverter.class);

    ContactHarassSettingDto vo2dto(ContactHarassSettingVo vo);

    List<ContactHarassSettingDto> vo2dto(List<ContactHarassSettingVo> voList);

    @InheritInverseConfiguration
    ContactHarassSettingVo dto2vo(ContactHarassSettingDto dto);

    @InheritInverseConfiguration
    List<ContactHarassSettingVo> dto2vo(List<ContactHarassSettingDto> dtoList);

}
